package cn.home.sysmanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.home.common.annotation.Excel;
import cn.home.common.core.domain.BaseEntity;

/**
 * 药品对象 home_medicine
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
public class HomeMedicine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品编号(排序号) */
    private Long id;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品图片 */
    @Excel(name = "药品图片")
    private String medicineImg;

    /** 药品类型（外键medicinetype） */
    @Excel(name = "药品类型", readConverterExp = "外=键medicinetype")
    private String medicineType;

    /** 药品规格 */
    @Excel(name = "药品规格")
    private String medicineSpecifications;

    /** 药品详情 */
    @Excel(name = "药品详情")
    private String medicineInfo;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date relaseTime;

    /** 逻辑删除：0未删除 1删除 */
    @Excel(name = "逻辑删除：0未删除 1删除")
    private Long del;

    /** 扩展2 */
    private String exp2;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }

    public void setMedicineImg(String medicineImg) 
    {
        this.medicineImg = medicineImg;
    }

    public String getMedicineImg() 
    {
        return medicineImg;
    }

    public void setMedicineType(String medicineType) 
    {
        this.medicineType = medicineType;
    }

    public String getMedicineType() 
    {
        return medicineType;
    }

    public void setMedicineSpecifications(String medicineSpecifications) 
    {
        this.medicineSpecifications = medicineSpecifications;
    }

    public String getMedicineSpecifications() 
    {
        return medicineSpecifications;
    }

    public void setMedicineInfo(String medicineInfo) 
    {
        this.medicineInfo = medicineInfo;
    }

    public String getMedicineInfo() 
    {
        return medicineInfo;
    }

    public void setRelaseTime(Date relaseTime) 
    {
        this.relaseTime = relaseTime;
    }

    public Date getRelaseTime() 
    {
        return relaseTime;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    public void setExp2(String exp2) 
    {
        this.exp2 = exp2;
    }

    public String getExp2() 
    {
        return exp2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicineName", getMedicineName())
            .append("medicineImg", getMedicineImg())
            .append("medicineType", getMedicineType())
            .append("medicineSpecifications", getMedicineSpecifications())
            .append("medicineInfo", getMedicineInfo())
            .append("relaseTime", getRelaseTime())
            .append("del", getDel())
            .append("exp2", getExp2())
            .toString();
    }
}
